<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>小米上边栏案例</title>

    <style>
        body {
            margin: 0;
            padding: 0;
            font-size: 14px;
        }
        
        .nav {
            width: 1225px;
            height: 460px;
            background-color: aquamarine;
            margin: 100px auto;
        }
        
        #right {
            width: 995px;
            height: 460px;
            float: right;
            background-color: black;
        }
        
        #left {
            width: 230px;
            height: 460px;
            float: left;
            background-color: #55585a;
        }
        
        a {
            text-decoration: none;
            height: 42px;
            color: aliceblue;
            line-height: 50px;
            padding: 0px 0px 0px 30px;
            display: block;
        }
        
        a:hover {
            background-color: #ff6700;
        }
    </style>

</head>

<body>

    <div class="nav">
        <div id="left">
            <a href="#" style="   margin-top: 20px;">
                <span>手机</span>
                <span>电话卡</span>
            </a>


            <a href="#">
                <span>电视</span>
                <span>盒子</span>
            </a>


            <a href="#">
                <span>笔记本</span>
                <span>平板</span></a>


            <a href="#">
                <span>出行</span>
                <span>穿戴</span></a>


            <a href="#">
                <span>智能</span>
                <span>路由器</span></a>


            <a href="#">
                <span>健康</span>
                <span>儿童</span></a>


            <a href="#">
                <span>耳机</span>
                <span>音响</span></a>
            <a href="#">
                <span>耳机</span>
                <span>音响</span></a>
            <a href="#">
                <span>耳机</span>
                <span>音响</span></a>
            <a href="#">
                <span>耳机</span>
                <span>音响</span></a>
        </div>
        <div id="right">

            <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/3a82846d975204e12923de52add19339.jpg?thumb=1&w=1533&h=575&f=webp&q=90" style="width: 995px;height: 460px;">
        </div>
    </div>


</body>

</html>